package com.wl.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wl.model.Account;
import com.wl.model.NewsInfo;
import com.wl.utils.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsInfoDao extends BaseMapper<NewsInfo>{

    List<NewsInfo> getLimitNewsInfo(PageUtil pageUtil);

    int getCountNewsInfo();

    List<NewsInfo> findByNewsInfo(NewsInfo newsInfo);

    void deleteNewsInfo (@Param("newsId") long newsId);


}
